/**
 * Copyright (C), 2019-2020, 宇信融汇
 * FileName: B
 * Author:   xbliu
 * Date:     2020/6/28 17:31
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * xbliu           修改时间           版本号              描述
 */
package c_006;

/**
 * @Classname B
 * @Description TODO
 * @Date 2020/6/28 17:31
 * @Created by xbliu
 */
public class B extends A {
    @Override
    public void show() {
        System.out.println("BBB");
    }

    public static void main(String[] args) {
        B b = (B) new A();
      if(b instanceof B){

      }

        A a = new B();
        a.show();
    }
}
